function upload(BtnUpload , Status, SubmitVar, contentId,base_url ){
        var time = (new Date).getTime();
        new AjaxUpload((BtnUpload), {
            action: '/?r=imageUpload/default/thumb',
            name: SubmitVar,
            data: {
                r: 'imageUpload/default/thumb',
                timestamp: time, 
            },
            responseType: false,
            onSubmit: function(file, ext){
                 if (! (ext && /^(jpg|png|jpeg)$/.test(ext))){ 
                    alert("Chi cho phép file jpg, png");
                                      
                }
                
                Status.text('Đang tải ... ');
            },
            onComplete: function(file, response){
                //On completion clear the status

                Status.text('');
                //Add uploaded file to list
                if(response=="success"){
                     contentId.html('<img id="'+SubmitVar+'" height="157px" width="157px" src="'+base_url+time+'-'+file+'" />').addClass('success');
                    return false;  
                } else if (response == 'error'){
                    return false;
                }else{
                    contentId.html('<img id="'+SubmitVar+'" height="157px" width="157px" src="'+base_url+time+'-'+file+'" />').addClass('success');
                }
            }

        });
        
    }

